<?php
/* 
* @Author: Jerry-chen
* @Date:   2014-07-12 15:41:20
* @Last Modified time: 2014-07-17 14:06:04
* @Last Modified by: Jerry-chen<uranusbill@163.com>
* @ Copyright (c) 2014 http://www.cooldreamer.com All rightsreserved.
*/
class GoodspriceModel extends Model
{
	//指定表名
	public $table = 'goodsprice';
	/**
	 * [add_ 添加数据]
	 * @param [type] $data [description]
	 */
	public function add_($data=null)
	{
		return $this->add($data);
	}
	/**
	 * [get_one 获得一条数据]
	 * @param  [type] $where [description]
	 * @return [type]        [description]
	 */
	public function get_one($where=null,$field=null)
	{
		return $this->where($where)->field($field)->find();
	}
	public function get_all($where=null,$field=null)
	{
		return $this->where($where)->field($field)->all();
	}
	/**
	 * [del_ 删除数据]
	 * @return [type] [description]
	 */
	public function del_($where)
	{
		return $this->where($where)->del();
	}
}